package com.cyf.xjtech_android;

import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.List;

public class X_DEVICE_PARAM extends Structure {
    public int iFrameRate = 0;// 图像帧频
    public int iSrcWidth = 0;// 原始图像/温度宽度
    public int iSrcHeight = 0;// 原始图像/温度高度
    public int iDstWidth = 0;// 目标图像/温度宽度
    public int iDstHeight = 0;// 目标图像/温度高度
    public int iCutHorOffset = 0;// 数据裁剪水平偏移量
    public int iCutVerOffset = 0;// 数据裁剪垂直偏移量
    public int bCut = 0;// 数据裁剪标志
    public int eAlarmType = 0;// 报警类型
    public int eFlipType = 0; // 数据翻转类型

    public int getiFrameRate() {
        return iFrameRate;
    }

    public void setiFrameRate(int iFrameRate) {
        this.iFrameRate = iFrameRate;
    }

    public int getiSrcWidth() {
        return iSrcWidth;
    }

    public void setiSrcWidth(int iSrcWidth) {
        this.iSrcWidth = iSrcWidth;
    }

    public int getiSrcHeight() {
        return iSrcHeight;
    }

    public void setiSrcHeight(int iSrcHeight) {
        this.iSrcHeight = iSrcHeight;
    }

    public int getiDstWidth() {
        return iDstWidth;
    }

    public void setiDstWidth(int iDstWidth) {
        this.iDstWidth = iDstWidth;
    }

    public int getiDstHeight() {
        return iDstHeight;
    }

    public void setiDstHeight(int iDstHeight) {
        this.iDstHeight = iDstHeight;
    }

    public int getiCutHorOffset() {
        return iCutHorOffset;
    }

    public void setiCutHorOffset(int iCutHorOffset) {
        this.iCutHorOffset = iCutHorOffset;
    }

    public int getiCutVerOffset() {
        return iCutVerOffset;
    }

    public void setiCutVerOffset(int iCutVerOffset) {
        this.iCutVerOffset = iCutVerOffset;
    }

    public int getbCut() {
        return bCut;
    }

    public void setbCut(int bCut) {
        this.bCut = bCut;
    }

    public int geteAlarmType() {
        return eAlarmType;
    }

    public void seteAlarmType(int eAlarmType) {
        this.eAlarmType = eAlarmType;
    }

    public int geteFlipType() {
        return eFlipType;
    }

    public void seteFlipType(int eFlipType) {
        this.eFlipType = eFlipType;
    }

    /**
     * 重写getFieldOrder获取字段列表
     * @return 字段列表
     */
    @Override
    protected List<String> getFieldOrder() {
        return Arrays.asList("iFrameRate", "iSrcWidth", "iSrcHeight", "iDstWidth", "iDstHeight",
                "iCutHorOffset", "iCutVerOffset", "bCut", "eAlarmType", "eFlipType");
    }
}
